package com.sgb.kjwl.model.entity.user;

import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;
import com.sgb.kjwl.model.entity.lease.PriceSetEntity;
import com.sgb.kjwl.model.entity.transport.CargoPublishEntity;

import java.util.ArrayList;
import java.util.List;

public class AddMachineOutEntity {
    private String id;
    private String no;
    @SerializedName("firstCategoryNo")
    private String firstCategory; //机械分类no //一级类目no
    @SerializedName("secondCategoryNo")
    private String secondCategory;//机械类型no
    @SerializedName(value = "firstCategoryName", alternate = {"mechanicalType"})
    private String firstName;//机械分类 //一级类目名称
    @SerializedName(value = "secondCategoryName", alternate = {"mechanicalClassification"})
    private String secondName;//机械类型
    @SerializedName("brandName")
    private String brandName;//品牌名称
    private String brandNo;//品牌no
    private String modelName;//出厂型号
    @SerializedName("buyDate")
    private String buyTime; //购机时间
    @SerializedName("useHour")
    private String workTime;//工作小时
    @SerializedName("isDriver")
    private String driver;//是否自带驾驶员（0：否，1：是）
    private String priceUnitNo;//价格单位no
    private String rentalPrice;//出租价格
    private String provinceNo;//省no
    private String cityNo;//市no
    private String areaNo;//区no
    @SerializedName(value = "attributeList", alternate = {"attrs"})
    private List<PublicAttrEntity> attrList;
    private String title;//标题
    private String describe;//描述
    private List<String> pictures;//图片
    private String imgPath;
    @SerializedName(value = "contactName")
    private String contacts;//联系人
    @SerializedName(value = "contactPhone")
    private String contactNumber;//联系电话
    private String negotiable;//是否面议（1：是，0否）
    private String priceUnit;
    private String priceUnitName;//价格单位
    @SerializedName(value = "provinceName", alternate = {"province"})
    private String province;//省
    @SerializedName(value = "cityName", alternate = {"city"})
    private String city;//市
    @SerializedName(value = "areaName", alternate = {"district"})
    private String district;//区
    private String identity;//身份 0 个人 1 企业
    //2020-7-23 新增字段
    private String taskAddr;
    private String addressDetail;//详细地址
    private String latitude;//详细地址纬度
    private String longitude;//详细地址经度
    //2020-9-9 新增字段
    private String workStartTime; //可工作开始时间 时间戳
    private String workEndTime; //可工作结束时间 时间戳
    private String workDuration; //工作时长
    private String workDurationUnit; //工作时长单位
    private String driverAge;//驾驶员年龄
    private String drivingAge;//驾驶员驾龄
    @SerializedName(value = "repairExplain")
    private String repairRemake;//维修费说明
    @SerializedName("fuelExplain")
    private String fuelRemake;//燃油费说明
    private String needInvoice;//是否开具发布（0无发票，1有发票）
    private String invoiceType;  //发票类型（0普通发票，1专用发票）
    private String tariff; //税率
    private String customerServiceId;//客服id
    private String customerServiceName;//客服名
    private String companyNo;//所属公司no
    //2021-1-23 新增字段
    private String serviceArea; //服务范围
    private String supportTransport;//是否提供运输（1：是，2：否
    private String supportInsurance;//有无保险（1：是，2：否）
    @SerializedName("asideNum")
    private String asidenum;//闲置数量  默认1
    private String priceExplain;//价格说明
    @SerializedName(value = "acceptExplain", alternate = {"accpetExplain"})
    private String accpetExplain;//验收说明
    private String afterSalesExplain;//售后说明
    @SerializedName(value = "priceList", alternate = {"priceTypeList"})
    private List<PriceSetEntity> priceTypeList;//价格配置
    private String status;//0草稿，1 上架 2 下架 3 审核不过，4 审核中
    private String departmentNo;//部门no,无传''
    private String departmentName;
    private String updateUserNo;//更新者no
    private LocationEntity location;//位置信息

    private String hasOperator;//新增传空字符 编辑传id
    private String categoryType; //1机械， 2 设备，3车辆，4 房产，5土地，6工厂，7农机
    private String companyAuthTime;//入驻时长（企业认证时间）
    private String createCompanyId; //公司id(跳转企业)
    private String createCompanyName; //公司名
    private String createCompanyNo; //公司no
    private String createUserName;//出租方个人
    private String remark; //备注说明
    private String updateTime;//更新发布时间
    private String updateUser;//更新人no

    private String createUser;//创建人no
    private String weixinFenXiangUrl;//微信分享专用Url前缀

    private List<VipPrice> maxPrices;//价格配置

    public List<VipPrice> getMaxPrices() {
        return maxPrices;
    }

    public void setMaxPrices(List<VipPrice> maxPrices) {
        this.maxPrices = maxPrices;
    }

    public String getWeixinFenXiangUrl() {
        return weixinFenXiangUrl;
    }

    public void setWeixinFenXiangUrl(String weixinFenXiangUrl) {
        this.weixinFenXiangUrl = weixinFenXiangUrl;
    }

    public String getBrandNo() {
        return brandNo;
    }

    public void setBrandNo(String brandNo) {
        this.brandNo = brandNo;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public String getWorkDuration() {
        return workDuration;
    }

    public void setWorkDuration(String workDuration) {
        this.workDuration = workDuration;
    }

    public String getWorkDurationUnit() {
        return workDurationUnit;
    }

    public void setWorkDurationUnit(String workDurationUnit) {
        this.workDurationUnit = workDurationUnit;
    }

    public LocationEntity getLocation() {
        return location;
    }

    public void setLocation(LocationEntity location) {
        this.location = location;
    }

    public String getCategoryType() {
        return categoryType;
    }

    public void setCategoryType(String categoryType) {
        this.categoryType = categoryType;
    }

    public String getCompanyAuthTime() {
        return companyAuthTime;
    }

    public void setCompanyAuthTime(String companyAuthTime) {
        this.companyAuthTime = companyAuthTime;
    }

    public String getCreateCompanyId() {
        return createCompanyId;
    }

    public void setCreateCompanyId(String createCompanyId) {
        this.createCompanyId = createCompanyId;
    }

    public String getCreateCompanyName() {
        return createCompanyName;
    }

    public void setCreateCompanyName(String createCompanyName) {
        this.createCompanyName = createCompanyName;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public String getCreateCompanyNo() {
        return createCompanyNo;
    }

    public void setCreateCompanyNo(String createCompanyNo) {
        this.createCompanyNo = createCompanyNo;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public static class LocationEntity{
        private String address;//详细地址
        private String taskAddr;
        private String areaName;//区名称
        private String areaNo;//区no
        private String cityName;
        private String cityNo;
        private String latitude;

        public String getTaskAddr() {
            return taskAddr;
        }

        public void setTaskAddr(String taskAddr) {
            this.taskAddr = taskAddr;
        }

        private String longitude;
        private String provinceName;
        private String provinceNo;

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getAreaName() {
            return areaName;
        }

        public void setAreaName(String areaName) {
            this.areaName = areaName;
        }

        public String getAreaNo() {
            return areaNo;
        }

        public void setAreaNo(String areaNo) {
            this.areaNo = areaNo;
        }

        public String getCityName() {
            return cityName;
        }

        public void setCityName(String cityName) {
            this.cityName = cityName;
        }

        public String getCityNo() {
            return cityNo;
        }

        public void setCityNo(String cityNo) {
            this.cityNo = cityNo;
        }

        public String getLatitude() {
            return latitude;
        }

        public void setLatitude(String latitude) {
            this.latitude = latitude;
        }

        public String getLongitude() {
            return longitude;
        }

        public void setLongitude(String longitude) {
            this.longitude = longitude;
        }

        public String getProvinceName() {
            return provinceName;
        }

        public void setProvinceName(String provinceName) {
            this.provinceName = provinceName;
        }

        public String getProvinceNo() {
            return provinceNo;
        }

        public void setProvinceNo(String provinceNo) {
            this.provinceNo = provinceNo;
        }
    }

    public String getHasOperator() {
        return hasOperator;
    }

    public void setHasOperator(String hasOperator) {
        this.hasOperator = hasOperator;
    }

    public String getAddressDetail() {
        return TextUtils.isEmpty(addressDetail) ? "" : addressDetail;
    }

    public String getBuyTime() {
        return TextUtils.isEmpty(buyTime) ? "" : buyTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getFirstCategory() {
        return firstCategory;
    }

    public void setFirstCategory(String firstCategory) {
        this.firstCategory = firstCategory;
    }

    public String getSecondCategory() {
        return secondCategory;
    }

    public void setSecondCategory(String secondCategory) {
        this.secondCategory = secondCategory;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getSecondName() {
        return secondName;
    }

    public void setSecondName(String secondName) {
        this.secondName = secondName;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public void setBuyTime(String buyTime) {
        this.buyTime = buyTime;
    }

    public String getWorkTime() {
        return workTime;
    }

    public void setWorkTime(String workTime) {
        this.workTime = workTime;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getPriceUnitNo() {
        return priceUnitNo;
    }

    public void setPriceUnitNo(String priceUnitNo) {
        this.priceUnitNo = priceUnitNo;
    }

    public String getRentalPrice() {
        return rentalPrice;
    }

    public void setRentalPrice(String rentalPrice) {
        this.rentalPrice = rentalPrice;
    }

    public String getProvinceNo() {
        return provinceNo;
    }

    public void setProvinceNo(String provinceNo) {
        this.provinceNo = provinceNo;
    }

    public String getCityNo() {
        return cityNo;
    }

    public void setCityNo(String cityNo) {
        this.cityNo = cityNo;
    }

    public String getAreaNo() {
        return areaNo;
    }

    public void setAreaNo(String areaNo) {
        this.areaNo = areaNo;
    }

    public List<PublicAttrEntity> getAttrList() {
        return attrList;
    }

    public void setAttrList(List<PublicAttrEntity> attrList) {
        this.attrList = attrList;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public List<String> getPictures() {
        return pictures;
    }

    public void setPictures(List<String> pictures) {
        this.pictures = pictures;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getContactNumber() {
        return contactNumber;
    }

    public void setContactNumber(String contactNumber) {
        this.contactNumber = contactNumber;
    }

    public String getNegotiable() {
        return negotiable;
    }

    public void setNegotiable(String negotiable) {
        this.negotiable = negotiable;
    }

    public String getPriceUnit() {
        return priceUnit;
    }

    public void setPriceUnit(String priceUnit) {
        this.priceUnit = priceUnit;
    }

    public String getPriceUnitName() {
        return priceUnitName;
    }

    public void setPriceUnitName(String priceUnitName) {
        this.priceUnitName = priceUnitName;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getTaskAddr() {
        return taskAddr;
    }

    public void setTaskAddr(String taskAddr) {
        this.taskAddr = taskAddr;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getCustomerServiceId() {
        return customerServiceId;
    }

    public void setCustomerServiceId(String customerServiceId) {
        this.customerServiceId = customerServiceId;
    }

    public String getWorkStartTime() {
        return workStartTime;
    }

    public void setWorkStartTime(String workStartTime) {
        this.workStartTime = workStartTime;
    }

    public String getWorkEndTime() {
        return workEndTime;
    }

    public void setWorkEndTime(String workEndTime) {
        this.workEndTime = workEndTime;
    }

    public String getDriverAge() {
        return driverAge;
    }

    public void setDriverAge(String driverAge) {
        this.driverAge = driverAge;
    }

    public String getDrivingAge() {
        return drivingAge;
    }

    public void setDrivingAge(String drivingAge) {
        this.drivingAge = drivingAge;
    }

    public String getRepairRemake() {
        return repairRemake;
    }

    public void setRepairRemake(String repairRemake) {
        this.repairRemake = repairRemake;
    }

    public String getFuelRemake() {
        return fuelRemake;
    }

    public void setFuelRemake(String fuelRemake) {
        this.fuelRemake = fuelRemake;
    }

    public String getNeedInvoice() {
        return needInvoice;
    }

    public void setNeedInvoice(String needInvoice) {
        this.needInvoice = needInvoice;
    }

    public String getInvoiceType() {
        return invoiceType;
    }

    public void setInvoiceType(String invoiceType) {
        this.invoiceType = invoiceType;
    }

    public String getTariff() {
        return tariff;
    }

    public void setTariff(String tariff) {
        this.tariff = tariff;
    }

    public String getCustomerServiceName() {
        return customerServiceName;
    }

    public void setCustomerServiceName(String customerServiceName) {
        this.customerServiceName = customerServiceName;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public String getServiceArea() {
        return serviceArea;
    }

    public void setServiceArea(String serviceArea) {
        this.serviceArea = serviceArea;
    }

    public String getSupportTransport() {
        return supportTransport;
    }

    public void setSupportTransport(String supportTransport) {
        this.supportTransport = supportTransport;
    }

    public String getSupportInsurance() {
        return supportInsurance;
    }

    public void setSupportInsurance(String supportInsurance) {
        this.supportInsurance = supportInsurance;
    }

    public String getAsidenum() {
        return asidenum;
    }

    public void setAsidenum(String asidenum) {
        this.asidenum = asidenum;
    }

    public String getPriceExplain() {
        return priceExplain;
    }

    public void setPriceExplain(String priceExplain) {
        this.priceExplain = priceExplain;
    }

    public String getAccpetExplain() {
        return accpetExplain;
    }

    public void setAccpetExplain(String accpetExplain) {
        this.accpetExplain = accpetExplain;
    }

    public String getAfterSalesExplain() {
        return afterSalesExplain;
    }

    public void setAfterSalesExplain(String afterSalesExplain) {
        this.afterSalesExplain = afterSalesExplain;
    }

    public List<PriceSetEntity> getPriceTypeList() {
        return priceTypeList;
    }

    public void setPriceTypeList(List<PriceSetEntity> priceTypeList) {
        this.priceTypeList = priceTypeList;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDepartmentNo() {
        return departmentNo;
    }

    public void setDepartmentNo(String departmentNo) {
        this.departmentNo = departmentNo;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getUpdateUserNo() {
        return updateUserNo;
    }

    public void setUpdateUserNo(String updateUserNo) {
        this.updateUserNo = updateUserNo;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public static class VipPrice{
        private String durationUnitNo;
        private String durationUnitName;
        private double maxPrice;

        public String getDurationUnitNo() {
            return durationUnitNo;
        }

        public void setDurationUnitNo(String durationUnitNo) {
            this.durationUnitNo = durationUnitNo;
        }

        public String getDurationUnitName() {
            return durationUnitName;
        }

        public void setDurationUnitName(String durationUnitName) {
            this.durationUnitName = durationUnitName;
        }

        public double getMaxPrice() {
            return maxPrice;
        }

        public void setMaxPrice(double maxPrice) {
            this.maxPrice = maxPrice;
        }
    }
}
